const fs = require('fs')
const path = require('path')
const glob = require('glob')

// glob('markdown/**/*.md', (err, files) => {
//   if (err) throw err
//   console.log(files)
// })

const mk_path = path.join('markdown/**/*.md')

let files = glob.sync(mk_path)
console.log(files)

files.forEach((item, index, files) => {
  files[index] = item.replace('markdown', 'html')
})
console.log(files)